import request from '@/utils/request'

// 获取列表
export function warehouseGetList(pd) {
  return request({
    url: '/wms/warehouse/getList',
    method: 'get',
    params: pd
  })
}

// 获取条数
export function warehouseGetCount(pd) {
  return request({
    url: '/wms/warehouse/getCount',
    method: 'get',
    params: pd
  })
}

// 新增
export function warehouseAdd(data) {
  return request({
    url: '/wms/warehouse',
    method: 'post',
    data: data
  })
}

// 修改
export function warehouseEdit(pd) {
  return request({
    url: '/wms/warehouse',
    method: 'put',
    data: pd
  })
}

// 删除参数配置
export function warehouseDel(id) {
  return request({
    url: '/wms/warehouse/id/' + id,
    method: 'delete'
  })
}